from ultralytics import YOLO
# 加载权重
model = YOLO('runs/detect/train14/weights/best.pt')
if __name__ == '__main__':
    results = model(r"K:\1-YolotrainPic\CCPD\CCPD_1\images\test\00336805555555-90_91-306&501_412&542-407&539_310&538_310&504_407&505-0_0_10_17_26_31_33-114-13.jpg",
                    device=0,
                    save=True,
                    project="runs/detect"
                    )

#yolo task=detect mode=predict model=weights/yolov8s.pt source=ultralytics/assets device=0 project=runs/detect